`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company: 
// Engineer: 
// 
// Create Date:    10:28:09 02/17/2011 
// Design Name: 
// Module Name:    pp_calc 
// Project Name: 
// Target Devices: 
// Tool versions: 
// Description: 
//
// Dependencies: 
//
// Revision: 
// Revision 0.01 - File Created
// Additional Comments: 
//
//////////////////////////////////////////////////////////////////////////////////
module pp_calc #(parameter N=8)(
    input [N-1:0] a,
    input b,
    output [N-1:0] pp
    );

	reg [N-1:0] ppReg;
	assign pp = ppReg;

	//execute the block whenever sensitivity is true
	//this case whenver a or b change
	always @ (a or b) begin
		if(b == 1'b0)begin
			ppReg=0;
		end else begin
			ppReg = a;
		end
	end

endmodule
